package com.cloud.async.business.body;

import java.util.concurrent.CompletableFuture;

public class FutureResult {

    private Class<?> cls;

    private Long taskTimestamp;

    private CompletableFuture<?> taskFuture;

    public Class<?> getCls() {
        return cls;
    }

    public void setCls(Class<?> cls) {
        this.cls = cls;
    }

    public Long getTaskTimestamp() {
        return taskTimestamp;
    }

    public void setTaskTimestamp(Long taskTimestamp) {
        this.taskTimestamp = taskTimestamp;
    }

    public CompletableFuture<?> getTaskFuture() {
        return taskFuture;
    }

    public void setTaskFuture(CompletableFuture<?> taskFuture) {
        this.taskFuture = taskFuture;
    }

    public FutureResult(Class<?> cls, Long taskTimestamp, CompletableFuture<?> taskFuture) {
        this.cls = cls;
        this.taskTimestamp = taskTimestamp;
        this.taskFuture = taskFuture;
    }
}
